#ifndef _NJGIS_NJSERVICE_H__
#define _NJGIS_NJSERVICE_H__

#include "../include/INxService.h"

namespace NJGIS
{
	namespace SERVICE
	{
		class NjService : public virtual INjService
		{
		public:

			NjService():_ip("127.0.0.1"),_port(8060){};

			NjService(const char* ip, const int port):_ip(ip),_port(port){};

			virtual const char* getIP();

			virtual int getPort();

			virtual int getPortStr( std::string &port );

			virtual int connect();

		protected:

			//! !!!With '/' in the end
			virtual int getBaseUrl( std::string &url );

			virtual int setIP( const char* ip );

			virtual int setPort( const int port );

		private:
			std::string _ip;

			int _port;

		};
	}
}

#endif